<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/22
 * Time: 10:44
 */

namespace app\api\model;


class Activity extends BaseModel
{
//    protected $hidden = ['description','details','start_time','end_time','is_have_coupon','coupon_limit','coupon_now','coupon_ids','create_time','update_time','delete_time'];

    public function getHeadImgAttr($value,$data){
        $finalUrl = $value;
        if($data['head_img_origin'] == 0){
            $finalUrl = config('setting.img_prefix').$value;
        }
        return $finalUrl;
    }
}